#include "../Base/stdafx.h"
#include "../Base/DXDevice.h"
#include "../Base/GameEngine.h"
#include "Label.h"

Label::Label(const tstring& text, const D3DXVECTOR3& pos, const tstring& name): m_Text(text), m_Pos(pos), m_Name(name)
{
}

Label::~Label()
{
}

void Label::Tick(float dTime)
{

}

void Label::Paint()
{
	DXDEVICE->DrawText(m_Text, (int)m_Pos.x, (int)m_Pos.y);
}

void Label::SetText(const tstring& text)
{
	m_Text = text;
}

void Label::SetPos(const D3DXVECTOR3& pos)
{
	m_Pos = pos;
}

const D3DXVECTOR3& Label::GetPos() const
{
	return m_Pos;
}

const tstring& Label::GetName() const
{
	return m_Name;
}